@scrollbar-prefix-cls: ~'@{css-prefix}scrollbar';

.@{scrollbar-prefix-cls} {
  overflow: hidden;
  position: relative;
  height: 100%;
  &-wrap {
    overflow: auto;
    height: 100%;
  }
  &-wrap-hidden-default {
    scrollbar-width: none;
  }
  &-wrap-hidden-default::-webkit-scrollbar {
    display: none;
  }

  &-thumb {
    position: relative;
    display: block;
    width: 0;
    height: 0;
    cursor: pointer;
    border-radius: inherit;
    // background-color: var(
    //   --el-scrollbar-bg-color,
    //   var(-#909399)
    // );
    background-color: #909399;
    transition: 0.3s background-color;
    opacity: 0.3;
  }
  &-thumb:hover {
    background-color: #909399;
    opacity: 0.5;
  }

  &-bar {
    position: absolute;
    right: 2px;
    bottom: 2px;
    z-index: 1;
    border-radius: 4px;
  }
  &-bar.is-vertical {
    width: 6px;
    top: 2px;
  }

  &-bar.is-vertical > div {
    width: 100%;
  }
  &-bar.is-horizontal {
    height: 6px;
    left: 2px;
  }
  &-bar.is-horizontal > div {
    height: 100%;
  }
}

.haloe-scrollbar-fade-enter-active {
  transition: opacity 340ms ease-out;
}
.haloe-scrollbar-fade-leave-active {
  transition: opacity 120ms ease-out;
}
.haloe-scrollbar-fade-enter-from,
.haloe-scrollbar-fade-leave-active {
  opacity: 0;
}
